package com.hypo.business.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hypo.business.domain.po.SysDictData;
import com.hypo.business.mapper.SysDictDataMapper;
import com.hypo.business.service.SysDictDataService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hypo
 * @version 1.0
 * @since 2025/8/13
 */
@Service
@RequiredArgsConstructor
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements SysDictDataService {
    private final SysDictDataMapper sysDictDataMapper;

    @Override
    public List<SysDictData> queryDictData() {
        return sysDictDataMapper.selectList(Wrappers.<SysDictData>lambdaQuery()
                .eq(SysDictData::getDictType, "warehouseArea_category"));
    }
}
